package com.neu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neu.domain.Doctor;
import com.neu.mapper.DoctorMapper;
import com.neu.service.DoctorService;

//应该交给spring的容器来管理,而不是springMVC容器

@Service("doctorService")
public class DoctorServiceImpl implements DoctorService{
	@Autowired
	private DoctorMapper doctorMapper;
	@Override
	public List<Doctor> findDoctorByDeptid(Integer deptid) {
		
		return doctorMapper.findDoctorByDeptid(deptid);
	}
	

}